package kz.kstu.website.service.impl;


import kz.kstu.website.entity.security.Account;
import kz.kstu.website.service.api.AccountService;
import org.springframework.context.annotation.Scope;

import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 * @author Filipp_Stankevich
 *         created: 6/28/11 2:23 PM
 */

@Scope("request")
@Named("accountService")
public class AccountServiceImpl implements AccountService {

    @PersistenceContext
    private EntityManager em;

    @Override
    public void saveAccount(Account account) {
        em.persist(account);
    }
}
